package com.example.testdemo;

import com.example.testdemo.annotation.Autowired;
import com.example.testdemo.annotation.Component;
import com.example.testdemo.spring.ApplicationContext;
import com.example.testdemo.spring.config.MyApplicationContextAware;

/**
 * <p>
 *
 * </p>
 *
 * @author 永健
 * @since 2020-03-29 02:27
 */
@Component
public class Tiger implements Person {

    private String name;

    public Tiger() {
    }

    public Tiger(String name) {
        this.name = name;
    }


    @Autowired
    private Women women;

    @Override
    public void eat() {
        women.eat();
        System.out.println("Tiger eat...");
    }

}
